package com.example.communist_app_api.db.dao;

<<<<<<< HEAD
import com.example.communist_app_api.db.dto.PhotoDTO;
import com.example.communist_app_api.db.pojo.Photo;
=======
import com.example.communist_app_api.db.pojoDto.Photo;
>>>>>>> 党建uniapp/dev
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PhotoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Photo record);


    Photo selectByPrimaryKey(Integer id);

    List<Photo> selectByUserId(Integer userId);

    List<PhotoDTO> selectAllPhoto(@Param("content") String content, @Param("title") String title, @Param("organizationIdList") List organizationIdList);


    List<Photo> selectAllPhotoByAudit( @Param("organizationId")Integer organizationId,
                                      @Param("title")String title, @Param("content")String content);

    Integer updateAuditPhoto(@Param("photoId") Integer photoId, @Param("auditorId") Integer auditorId);

    Photo selectPhotoByPhotoIdAndNoAudit(Integer photoId);
}
